import request from '@/utils/request'

// 查询设备访问控制列表
export function listDevice_access(query) {
  return request({
    url: '/access/device_access/list',
    method: 'get',
    params: query
  })
}

// 查询设备访问控制详细
export function getDevice_access(id) {
  return request({
    url: '/access/device_access/' + id,
    method: 'get'
  })
}

// 新增设备访问控制
export function addDevice_access(data) {
  return request({
    url: '/access/device_access',
    method: 'post',
    data: data
  })
}

// 修改设备访问控制
export function updateDevice_access(data) {
  return request({
    url: '/access/device_access',
    method: 'put',
    data: data
  })
}

// 删除设备访问控制
export function delDevice_access(id) {
  return request({
    url: '/access/device_access/' + id,
    method: 'delete'
  })
}
